<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
	   *{
        margin: 0;
        padding: 0;
	    }
		#root{
			width: 1000px;
			min-height: 800px;
			margin: 0px auto;
			position: relative;/*子元素绝对定位于父元素，要求父元素*/

		}
		#header{
			height: 100px;
			background-color: #ccc;

		}
		.mid{
			height: 600px;
			top:100;
			position: absolute;
		}
		#left{
			
			width: 200px;
			background-color: #ff0;
			
			top: 100px;
		

		}
		#middel{
			
			width: 400px;
			background-color: #f00;
			
			
			left: 200px;
			

		}
		#right{
			
			width: 400px;
			background-color: #f0f;
			
			right: 0;
			
		}
		#foot{
			width: 1000px;
			height: 100px;
	        background-color: #000;
	        position: absolute;
            bottom: 0;
		}
		@media(max-width:412px){
			body{
				background: red;
			}
		}
	</style>
</head>
<body> <!--CSS+Div布局-->
<div id="root">
	<div id="header"></div>
	<div id="left" class="mid"></div>
	<div id="middel" class="mid"></div>
	<div id="right" class="mid"></div>
	<div id="foot"></div>
</div>
	
</body>
</html>